<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>收费项目管理</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
</head>
<body>
  <table width="100%" border="0">
    <tr>
		<td class="STYLE4" align="center" bgcolor="#ffffff" colspan="2"
			height="40">
			收费项目列表
			<span style="text-align:right">
				<a href="chargeItem.do?method=add">增加收费项目</a>
			</span>
		</td>
    </tr>
    <tr>
      <td colspan="2" align="center" bgcolor="#ffffff">
      <table class="tableline" cellspacing="1" cellpadding="0" width="100%" border="0">
        <tr bgcolor="#ffffff" align="center">
          <td width="15%" height="25">收费项目编号</td>
          <td width="25%">收费项目名称</td>
          <td width="20%">收费方式</td>
          <td width="20%">收费单位</td>
          <td width="20%">操作</td>
        </tr>
        <c:if test="${!empty itemList}">
		<c:forEach items="${itemList}" var="chargeItem">
	        <tr bgcolor="#ffffff" align="center">
	          <td height="25">${chargeItem.itemId }</td>
	          <td>${chargeItem.name }</td>
	          <td>${chargeItem.chargeWay.name }</td>
	          <td>${chargeItem.chargeUnit.name }</td>
	          <td><a href="chargeItem.do?method=update&id=${chargeItem.id }">编辑</a>&nbsp;<a href="chargeItem.do?method=delete&id=${chargeItem.id }">删除</a></td>
	        </tr>
        </c:forEach>
        </c:if>
      </table>
      </td>
    </tr>
  </table>
</body>
</html>